| recast {GCDkit} | R Documentation |
Recalculation of the selected data to a fixed sum.
recast(total = 100) normalize2total(what = NULL, total = 100)
what |
numeric matrix or character vector with a list of column names to be normalized, separated by commas. |
total |
a sum the data should be normalized to. |
Both functions return the selected elements/oxides (by default columns in the data matrix
'WR') normalized to the required sum. The function 'recast' is front-end
to 'normalize2total'. If 'what' is a comma delimited list, the
corresponding columns from the data matrix 'WR' are selected.
If 'what' is empty, the user is prompted to supply the list of required
column names via the function 'selectColumnsLabels'.
results |
numerical vector/matrix with the results |
Vojtěch Janoušek, vojtech.janousek@geology.cz
sampleDataset("sazava")
normalize2total(major,1)
# Use recast() to select the sum and elements interactively